package org.springframework.boot.autoconfigure.netty.test;


import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Null;

public class User {

    private int age;

    private int id;

    //@Null()
    private String name;

   // @Length(min=200,max=500,groups = TestGroup.class)
    private String grade;

    private UserInner userInner;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public UserInner getUserInner() {
        return userInner;
    }

    public void setUserInner(UserInner userInner) {
        this.userInner = userInner;
    }

    @Override
    public String toString() {
        return "User{" +
                "age=" + age +
                ", id=" + id +
                ", name='" + name + '\'' +
                ", grade='" + grade + '\'' +
                ", userInner=" + userInner +
                '}';
    }
}
